<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <canvas id="canvas" width="600" height="600"></canvas>
</body>
</html>
<script>
    var canvas = document.getElementById('canvas')
    var ctx = canvas.getContext('2d')

    ctx.beginPath()
    ctx.moveTo(100,100)
    ctx.lineTo(100,300)
    ctx.lineTo(200, 300)
    ctx.closePath()

    
    ctx.lineCap = "round"
    // ctx.lineJoin = "round"
    ctx.miterLimit = 2
    ctx.lineWidth = 20
    ctx.stroke()
    
    ctx.fillStyle = 'green'
    ctx.fill()

    
</script>